<ui:composition template="/WEB-INF/template/padrao.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="title">Criação de Usuário</ui:define>
	<ui:define name="corpo">

		<h:form>
			<p:messages id="error" showDetail="true" autoUpdate="true" closable="true"/>
		
			<h:panelGrid columns="2">
				<p:outputLabel value="Usuário: " for="username" />
				<p:inputText value="#{userMB.createUser.username}" id="username" />

				<p:outputLabel value="Senha: " for="pass" />
				<p:password value="#{userMB.createUser.password}" id="pass" />

				<p:outputLabel value="Ativo: " for="ativo" />
				<p:selectBooleanCheckbox value="#{userMB.createUser.ativo}" id="ativo" />

				<p:commandButton value="Logar" actionListener="#{userMB.createUser}"></p:commandButton>
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>